# -*- coding: utf-8 -*-
"""
@Time ： 2024/5/13 16:01
@Auth ： 李天天
"""
from solox.public.apm import AppPerformanceMonitor
from common.hande_device import MyAppPerformanceMonitor

# apm_pid_main = AppPerformanceMonitor(pkgName="com.arcvideo.sdk.demo", platform='Android',
#                                      deviceId="bc527fe4",
#                                      surfaceview=True,
#                                      noLog=False, pid="25955", record=False, collect_all=False)
apm_pid_main = MyAppPerformanceMonitor(pkgName="com.mb.android", platform='Android',
                                       deviceId="bc527fe4",
                                       surfaceview=True,
                                       noLog=False, pid="4600", record=False, collect_all=False)

# cpu_info = apm_pid_main.collectCpu()
# print(cpu_info)
mem_sys = apm_pid_main.collectSysMemory()
print(mem_sys)
